﻿
<script type="text/javascript">
    var COOKIE_NAME = '@ESMAM.Web.Core.BaseController.CONST_COOKIE_UNAME';
    $(function () {
        if ($.cookie(COOKIE_NAME)) {
            $("#j_login_name").val($.cookie(COOKIE_NAME));
            $("#j_password").focus();
        } else {
            $("#j_username").focus();
        }
    });

    function sys_login_submit() {
        $('#j_login_form').submit()
    }

    $('#j_login_password').bind('keyup', function (event) {
        if (event.keyCode == 13) {
            sys_login_submit()
        }
    })
</script>
<div class="bjui-pageContent">
    <form action="/Login/ajaxlogin" data-toggle="validate" method="post" id="j_login_form" class="bjui-form col-1" data-close-current="true">
        <div class="bjui-row col-1">
            <label class="row-label">登录账户</label>
            <div class="row-input required">
                <input type="text" data-rule="required" id="j_login_name" name="loginName" value="" placeholder="用户名">
            </div>
            <label class="row-label">登录密码</label>
            <div class="row-input required">
                <input type="password" data-rule="required" id="j_login_password" name="password" value="" placeholder="密码">
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="remove">取消</button></li>
        <li><button type="button" onclick="sys_login_submit()" class="btn-default" data-icon="check">登录</button></li>
    </ul>
</div>